from threading import Thread
import time


def sayhi(name, input, number):
    for i in range(1, 10):
        if number == "线程号1":
            time.sleep(2)
            print("这是线程号：%s - %s say hello %s - %s" % (number, name, str(i), input))
        else:
            time.sleep(1)
            print("线程号：%s - %s say hello %s - %s 休息1秒" % (number, name, str(i), input))

def sayGo():
    print("this is thead do things")
if __name__ == '__main__':
    # for i in range(1, 3):
    #     t = Thread(target=sayhi, args=('mike', 'to you', "线程号" + str(i)))
    #     t.start()
    #
    #     Thread().start()
    # print("主线程结束")


    Thread(target=sayGo()).start()
